﻿<?xml version="1.0" encoding="utf-8"?>                                         
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
<xsl:decimal-format name='H' grouping-separator='-' />
<xsl:decimal-format name='S' grouping-separator='/' />
<xsl:decimal-format name='C' grouping-separator=',' />
<xsl:template match="/">                                       
<html version="Version 1.0.0.1 ( build : 800902_001 )">
<HEAD>

<META content="text/html; charset=utf-8" http-equiv="Content-Type"></META><LINK rel="stylesheet" type="text/css" href="/resource/css/style.css"></LINK></HEAD>    
<BODY leftmargin='10' >
    <xsl:apply-templates/>                                       
    </BODY>
  </html>                                                        
</xsl:template>                                                  
                                                                 
<xsl:template match="MXMESSAGE">                               
    <xsl:apply-templates select="good"/>          
</xsl:template>                                                  
<xsl:template match="good">                       



<P><STRONG>상품관리</STRONG><IMG class="Title2depGra" align="absMiddle" src="/resource/images/title_2depgra.gif" width="73" height="8" script="/resource/images/title_2depgra.gif"></IMG>&#xa0;

</P>

<P><script language="javascript"><xsl:text disable-output-escaping="yes"><![CDATA[document.write('<br/>');]]></xsl:text></script>상품명: <SELECT onchange="comboChange()" size="1" name="combo1" datatype="field" xml="true" groupfd="상품목록" namefd="상품명" codefd="상품코드" xmlinit="상품초기화"><option value=""><xsl:if test="''=상품초기화"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>--선택--</option>
<xsl:for-each select="상품목록">
<option>
<xsl:if test="상품코드=../상품초기화"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>
<xsl:attribute name="value"><xsl:value-of select="상품코드"/></xsl:attribute>
<xsl:value-of select="상품명"/>
</option>
</xsl:for-each>
</SELECT>&#xa0;&#xa0;&#xa0;&#xa0;

</P>

<P>&#xa0;

</P>

<P>&#xa0;<form name="begin_form1" method="post" mxtype="begin_form">기본정보<IMG class="Title2depGra" align="absMiddle" src="/resource/images/title_2depgra.gif" width="73" height="8" script="/resource/images/title_2depgra.gif"></IMG>&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; <script language="javascript"><xsl:text disable-output-escaping="yes"><![CDATA[document.write('<br/>');]]></xsl:text></script>

<TABLE border="1" cellspacing="1" cellpadding="1" width="100%">

<TBODY>

<TR>

<TD bgcolor="#e0e0e0" height="23" width="117">

<P>상품번호

</P></TD>

<TD class="tblSrchbar" height="23" width="247"><INPUT class="edt_ComnLft" value="#" size="24" name="GD_CD" xml="true" xmllink="GD_CD">
<xsl:attribute name="value"><xsl:value-of select="GD_CD"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0">상품명</TD>

<TD bgcolor="#e0e0e0"><INPUT class="edt_ComnLft" value="#" size="24" name="GD_NM" xml="true" xmllink="GD_NM">
<xsl:attribute name="value"><xsl:value-of select="GD_NM"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="23" width="117">대출한도액</TD>

<TD class="tblSrchbar" height="23" width="247"><INPUT class="edt_ComnLft" value="#" size="24" name="LOAN_LIM_AMT" xml="true" xmllink="LOAN_LIM_AMT">
<xsl:attribute name="value"><xsl:value-of select="LOAN_LIM_AMT"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="23" width="117">대출금리</TD>

<TD class="tblSrchbar" height="23" width="247"><INPUT class="edt_ComnLft" value="#" size="24" name="LOAN_MNRT" xml="true" xmllink="LOAN_MNRT">
<xsl:attribute name="value"><xsl:value-of select="LOAN_MNRT"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="23" width="117">상환구분</TD>

<TD class="tblSrchbar" height="23" width="247"><SELECT size="1" name="RMBR_METH_DIV_CD" datatype="field" xml="true" groupfd="상환구분목록" namefd="상환구분" codefd="상환방법코드" xmlinit="초기화"><option value="00"><xsl:if test="''=초기화"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>만기일시상환</option>
<xsl:for-each select="상환구분목록">
<option>
<xsl:if test="상환방법코드=../초기화"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>
<xsl:attribute name="value"><xsl:value-of select="상환방법코드"/></xsl:attribute>
<xsl:value-of select="상환구분"/>
</option>
</xsl:for-each>
</SELECT></TD>

</TR>

</TBODY></TABLE><BUTTON onclick="buttonClick(1)" name="g_ins" value="button">
등록&#xa0;</BUTTON>&#xa0;<BUTTON onclick="buttonClick(2)" name="g_upd" value="button">
수정&#xa0;</BUTTON>&#xa0;<BUTTON onclick="resetData(this.form)" name="nbutton4" value="button">


<P>초기화&#xa0;

</P></BUTTON></form> <script language="JavaScript" name="wscript1" mxtype="wscript" capy="97" capx="1" src="resource/script/icommon.js">
<xsl:text disable-output-escaping="yes">
<![CDATA[
var g_CSID = "";
function OpenWin() 
{ 
  window.open('postcode.xml','postcode','width=500,height=500');
}
function checkCs()
{
	if((CS_RRNO1.value.length == 6) && (CS_RRNO2.value.length == 7))
	{
	//	var url = "/etable.do?&part_code=" + selectedvalue;
	//	location.href = url;
		alert("조회가 완료 되었습니다.");
	}
	else
	{
		alert("입력한 값이 정확하지 않습니다");
	}
}
function fnInsert()
{
		var csName = CS_NM.value;
		var csTel = TEL_NO1.value;
		var csPost = ZIP_CODE1.value;
		var csAddr = DETL_ADDR.value;
		if (csName == null || csName.length == 0) 
			{
			alert("이름을 입력하십시오");
			}
		if (csTel == null || csTel.length == 0)
			{
			alert("전화번호를 입력하십시오");
			}
		if (csPost == null || csPost.length == 0)
			{
			alert("우편번호를 입력하십시오");
			}
		if (csAddr == null || csAddr.length == 0)
			{
			alert("상세주소를 입력하십시오");
			}
		else
			{
			alert("등록되었습니다.");
			}
	//g_CSID = CSID.value;
	
	iajax.openSync("/customer.do");
	iajax.addParam(iconst.OPCODE, iconst.I02);
	iajax.addParam("CS_NO", CS_NO.value);
	iajax.addParam("CS_NM", CS_NM.value);
	iajax.addParam("TEL_NO1", TEL_NO1.value);
	iajax.addParam("TEL_NO2", TEL_NO2.value);
	iajax.addParam("TEL_NO3", TEL_NO3.value);
	iajax.addParam("ZIP_CODE1", ZIP_CODE1.value);
	iajax.addParam("ZIP_CODE2", ZIP_CODE2.value);
	iajax.addParam("DETL_ADDR1", DETL_ADDR1.value);
	iajax.addParam("DETL_ADDR2", DETL_ADDR2.value);
	iajax.addParam("MAILADDR", MAILADDR.value);
	iajax.addParam("JOB", JOB.value);
	iajax.addParam("MM_PRFT", MM_PRFT.value);
	iajax.addParam("ETC_PRFT", ETC_PRFT.value);
	iajax.addParam("OBNK_DEBT", OBNK_DEBT.value);
	iajax.addParam("ETC_DEBT", ETC_DEBT.value);
	iajax.addParam("PTCL_MTR", PTCL_MTR.value);
	iajax.send();
	
		
}
function fnUpdate()
{
	//g_CSID = CSID.value;
	iajax.openSync("/customer.do");
	iajax.addParam(iconst.OPCODE, iconst.U02);
	iajax.addParam("CS_NO", CS_NO.value);
	iajax.addParam("CS_NM", CS_NM.value);
	iajax.addParam("TEL_NO1", TEL_NO1.value);
	iajax.addParam("TEL_NO2", TEL_NO2.value);
	iajax.addParam("TEL_NO3", TEL_NO3.value);
	iajax.addParam("ZIP_CODE1", ZIP_CODE1.value);
	iajax.addParam("ZIP_CODE2", ZIP_CODE2.value);
	iajax.addParam("DETL_ADDR1", DETL_ADDR1.value);
	iajax.addParam("DETL_ADDR2", DETL_ADDR2.value);
	iajax.addParam("MAILADDR", MAILADDR.value);
	iajax.addParam("JOB", JOB.value);
	iajax.addParam("MM_PRFT", MM_PRFT.value);
	iajax.addParam("ETC_PRFT", ETC_PRFT.value);
	iajax.addParam("OBNK_DEBT", OBNK_DEBT.value);
	iajax.addParam("ETC_DEBT", ETC_DEBT.value);
	iajax.addParam("PTCL_MTR", PTCL_MTR.value);
	iajax.send();
}
function resetData()
	{
	// document.getElementById("begin_form1").reset();
	//begin_form1.reset();
	CS_NO.value="";
	CS_NM.value="";
	TEL_NO1.value="";
	TEL_NO2.value="";
	TEL_NO3.value="";
	ZIP_CODE1.value="";
	ZIP_CODE2.value="";
	DETL_ADDR1.value="";
	DETL_ADDR2.value="";
	MAILADDR.value="";
	JOB.value="";
	MM_PRFT.value="";
	ETC_PRFT.value="";
	OBNK_DEBT.value="";
	ETC_DEBT.value="";
	PTCL_MTR.value="";
	}
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><script language="JavaScript" name="wscript1" mxtype="wscript" capy="30" capx="2" tn="634347020335340099">
<xsl:text disable-output-escaping="yes">
<![CDATA[
function buttonClick(str)
{
	if (str == "1") {
		alert("insert");
		document.begin_form1.action="/good.do?opcode=I02";
		document.begin_form1.submit();
	} else if (str == "2") {
		alert("update");
		document.begin_form1.action="/good.do?opcode=U02";
		document.begin_form1.submit();
	}
}
function resetData(oForm)
{
	var url = "/good.do";
	location.href = url;
}
function comboChange()
{
	if(combo1.value >= 0) 
	{
		var selectedIndex = combo1.selectedIndex;
		var selectedtext  = combo1.options[selectedIndex].text;
		if (selectedtext != '--선택--') {
		var selectedvalue = combo1.value;
			var url = "/good.do?&opcode=S022&GD_CD=" + selectedvalue
			location.href = url;	
		}
	}
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<-->

</P>
</xsl:template>										  
</xsl:stylesheet>									  
